<template>
  <div class="inConbox clearfix det_bg">
    <!-- 头部 -->
    <Nav :URL="urls.url" :text="urls.text"></Nav>
    <!-- 内容 -->
    <div class="access_div_img dipW ju_al">
      <img src="../../../static/images/Order/assis_access.png" alt="">
      <p class="access_div_text">认证成功！</p>
      <button class="access_div_btn bdr" @click="getRputert()">返回</button>
    </div>
  </div>
</template>
<script>
import Nav from '../mallConent/mallTopNav'

export default {
  data(){
    return{
      urls:{
        url:'',
        text:'认证成功',
      },
    }
  }
  ,methods:{
    getRputert(){
      if(this.urls.url != ''){
        this.$router.push({
          path:this.urls.url
        })
      }else{
        this.$router.back()
      }
      
    }
  }
  ,components:{Nav} //引入组件
  ,created(){
    this.urls.url = sessionStorage.getItem('Router') != null ? sessionStorage.getItem('Router') : '/bomNav/userContent'
    this.$store.dispatch('showuserifonS')
  },
  // beforeRouteLeave (to, from, next) {
  //   if(sessionStorage.getItem('Router') != null ){
  //     next({ path: '/bomNav/taskContent' })
  //   }else {
  //     // this.urls.url = sessionStorage.getItem('Router')
  //     next();
  //   }
  // }
}
</script>
<style lang="scss" scoped>
.det_bg{
  z-index: 51;
  background: #fff;
  // position: fixed;
}
.access_div_img{
  padding:1rem 0rem;
  img{
    width: 2.68rem;
    height: 2.65rem;
  }
  .access_div_text{
    width: 100%;
    padding:.3rem 0rem;
    text-align: center;
    font-size: .3rem;
    font-weight: 600;
    color:#ff7200;
  }
  .access_div_btn{
    border:.02rem solid #ff7200;
    padding:.2rem .8rem;
    background: transparent;
    color:#ff7200;
    font-weight: 600;
    font-size: .28rem;
    margin:.6rem 0rem;
  }
}
</style>
